package groupon.web;

import groupon.com.bo.service.ManagerUserService;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.SimpleFormController;
import org.springframework.web.servlet.view.RedirectView;

public class LoginController extends SimpleFormController {
	
	@Autowired
	private ManagerUserService _userService;
	
	public ModelAndView onSubmit(Object command){
		_userService.searchAll();
		return new ModelAndView(new RedirectView(getSuccessView()));
	}
}
